package com.ruoyi.surfacewater.mapper;

import com.ruoyi.surfacewater.domain.BusBasmonthlycumulativedata;

import java.util.List;
import java.util.Map;

public interface BusMonthlycumulativedataMapper {

    /**
     * 获取最小最大时间
     **/
    public Map<String, Object> minmaxSampleDate();

    /**
     * 根据不同参数查询数据是否存在库里，如果存在就不做操作 不存在就插入
     **/
    public List<Map<String, Object>> findWq_data_basmonthlycumulativedataByCondition(Map<String, Object> map);

    /**
     * 根据对应id进行查询均值数据
     * segmentIds 断面id
     **/
    public List<Map<String, Object>> avgDatasegment(Map<String, Object> map);


    /**
     * 数据插入数据
     **/
    public int insertWq_data_basmonthlycumulativedata(BusBasmonthlycumulativedata busBasmonthlycumulativedata);


    public Map<String, Object> maxSampleDate(Map<String, Object> map);

    public List<Map<String, Object>> sydavgDatasegment(Map<String, Object> map);

    public List<Map<String, Object>> findWq_data_basmonthlycumulativedataByConditionmap(Map<String, Object> map);

    public int updateWq_data_basmonthlycumulativedata(BusBasmonthlycumulativedata busBasmonthlycumulativedata);

    /**
     * 根据传入的时间和断面id进行查询均值数据
     **/
    public List<Map<String, Object>> manualIndexMonthlyData(Map<String, Object> map);

    List<Map<String, Object>> avgmanualIndexMonthlyData(Map<String, Object> map);

    /**
     * 获取手工断面最新的时间
     **/
    String getbasicevaluatedatamaxSampleDate();
    public List<Map<String, Object>> getSegmentData();

}
